<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>{{$books->book_name}}”的评论({{count($booksreviews)}})</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="author" content="夜读书">
    <meta name="description" content="夜读书中文网">
    <meta name="keywords" content="读书,阅读,小说,文学">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="{{ asset('/bootstrap-3.3.5-dist/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/yds.css') }}">
    <link rel="stylesheet" href="{{ asset('/style/css/ucenter.css') }}">
    <script src="{{ asset('/scripts/jquery/jquery-1.11.3.min.js') }}"></script>
    <script src="{{ asset('/bootstrap-3.3.5-dist/js/bootstrap.min.js') }}"></script>
</head>
<body>
@include('books.partials.navtop')
@include('books.partials.nav')
<div id="yds_screen">
<div id="yds_content" class="clearfix">
  <div class="review">
   <h1>{{$books->book_name}}”的评论({{count($booksreviews)}})</h1>
   <div id="review">
   @if(count($booksreviews)!=0)
    @foreach($booksreviews as $booksreview)
        <div class="ctsh">
            <div class="tlst">
                <div class="ilst">
                <a class="" href="{{url('u')}}/{{$booksreview->users->uid}}" title="{{$booksreview->users->user_name}}">
                @if($booksreview->users->avatar_file_min!="")
                  <img style="width: 50px;height: 50px;" src="http://www.yedushu.com/{{ $booksreview->users->avatar_file_min }}">
                @else
                  <img style="width: 50px;height: 50px;" src="http://www.yedushu.com/usersface/default/avatar-min.png">
                @endif
                </a>
                </div>
                <div class="">
                <span class="cp-title"><a href="{{url('review')}}/{{$booksreview->id}}" title="{{$booksreview->title}}">{{$booksreview->title}}</a></span>
                <span class="user-name"><a class="" href="{{url('u')}}/{{$booksreview->users->uid}}">{{$booksreview->users->user_name}}</a></span><span class="rating allstar{{$booksreview->rating}}0"></span>
                </div>
            </div>
        
        <div class="review-short">{{mb_substr(strip_tags($booksreview->bookreview),0,160)}}......</div>
        <div class="uptime"><span class="wz">{{date('Y-m-d H:i',$booksreview->add_time)}}</span></div>
        </div>
    @endforeach
   @else
   <div class="">暂时没有评论！</div>
   <div class=""><a href="{{url('info')}}/{{$books->book_id}}/newbookreview">我去写长书评或读后感</a></div>
   @endif
   </div>
  </div>
  <div class="aside">
  <div class="indent">
    <p>夜读书评分会员信息</p>
  </div>  
  <div class="pl2"><a href="{{url('info')}}/{{$books->book_id}}">{{$books->book_name}}</a></div>
  <div class="rebook">
    <a href="{{url('info')}}/{{$books->book_id}}"><img src="{{url($books->bimg)}}"></img></a>
    <br/>
    @if($books->zuozhe!="") <span class="p1">作者:{{ $books->zuozhe }}</span><br/> @endif
    @if($books->yuanzuoming!="") <span class="p1">原作名:{{ $books->yuanzuoming }}</span><br/> @endif
    @if($books->isbn!="") <span class="p1">isbn:{{ $books->isbn }}</span><br/> @endif
    @if($books->book_name!="") <span class="p1">书名:{{ $books->book_name }}</span><br/> @endif
    @if($books->yeshu!="") <span class="p1">页数:{{ $books->yeshu }}</span><br/> @endif
    @if($books->yizhe!="") <span class="p1">译者:{{ $books->yizhe }}</span><br/> @endif
    @if($books->dingjia!="") <span class="p1">定价:{{ $books->dingjia }}</span><br/> @endif
    @if($books->chubanshe!="") <span class="p1">出版社:{{ $books->chubanshe }}</span><br/> @endif
    @if($books->zhuangzhen!="") <span class="p1">装帧:{{ $books->zhuangzhen }}</span><br/> @endif
    @if($books->chubannian!="") <span class="p1">出版年:{{ $books->chubannian }}</span><br/> @endif
  </div>
  </div>
</div>
</div>
@include('books.partials.footer')
</body>
</html>